package com.example.demo.model.entity;

import javax.persistence.*;

@Entity
@Table(name = "t_apply")
public class ApplyModel {
    @Id
    @Column
    private String applyId;

    @Column
    private String userId;

    @Column
    private String activityId;

    @Column
    private Long createTime;

    @Column
    private Integer isSign = 0;

    @Column
    private Long signTime;

    @OneToOne
    @JoinColumn(name = "userId", insertable = false, updatable = false)
    UserModel user;

    public UserModel getUser() {
        return user;
    }

    public void setUser(UserModel user) {
        this.user = user;
    }

    public String getApplyId() {
        return applyId;
    }

    public void setApplyId(String applyId) {
        this.applyId = applyId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Integer getIsSign() {
        return isSign;
    }

    public void setIsSign(Integer isSign) {
        this.isSign = isSign;
    }

    public Long getSignTime() {
        return signTime;
    }

    public void setSignTime(Long signTime) {
        this.signTime = signTime;
    }
}
